/*
 * @Description: 
 * @version: 
 * @Author: wind.wang
 * @Date: 2024-02-03 14:18:45
 * @LastEditors: wind.wang
 * @LastEditTime: 2024-02-03 19:33:23
 */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '',
      name: 'appMain',
      component: () => import('../views/AppMain.vue'),
      children: [
        {
          path: 'student',
          name: 'student',
          component: () => import('../views/StudentList.vue'),
          meta: { title: '学生列表' }
        }
      ]
    },
    {
      path: '/login',
      name: 'myLogin',
      component: () => import('../views/MyLogin.vue')
    }
  ]
})

export default router
